package com.itmuyue.demo.controller;

import com.itmuyue.demo.entity.User;
import com.itmuyue.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    private UserMapper userMapper;
    @GetMapping("/uer/findAll")
    public List<User> query(){
        return userMapper.selectAllUserAndCollections();
    }
}
